package ma.fizazi.missionsmanagement.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

@Entity
@DiscriminatorValue("Mission")
public class Mission extends Activite  {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Column
	private Date dateDebut;
	@Column
	private Date dateFin;
	@Column
	private int dureeMandat;
	@Column
	private String natureMandat;

	@ManyToOne
	private EntiteJuridique entiteJuridique;


	public Mission() {

	}

	public void finalize() throws Throwable {
		super.finalize();
	}

	public Date getDateDebut() {
		return dateDebut;
	}

	public void setDateDebut(Date dateDebut) {
		this.dateDebut = dateDebut;
	}

	public Date getDateFin() {
		return dateFin;
	}

	public void setDateFin(Date dateFin) {
		this.dateFin = dateFin;
	}

	public int getDureeMandat() {
		return dureeMandat;
	}

	public void setDureeMandat(int dureeMandat) {
		this.dureeMandat = dureeMandat;
	}

	public String getNatureMandat() {
		return natureMandat;
	}

	public void setNatureMandat(String natureMandat) {
		this.natureMandat = natureMandat;
	}

	public EntiteJuridique getEntiteJuridique() {
		return entiteJuridique;
	}

	public void setEntiteJuridique(EntiteJuridique entiteJuridique) {
		this.entiteJuridique = entiteJuridique;
	}


}